package com.user.controller;

import com.user.domain.Menber;
import com.user.service.MenberService;
import com.user.utils.R;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @Author : Yu
 * @Date 2024/4/15 上午11:40
 */
@RestController
@RequestMapping("/menber")
public class MenberController {
    @Resource
    private MenberService menberService;

    @PostMapping("/addMenber")
    public R addMenber(@RequestBody Menber menber) {
        return menberService.addMenber(menber);
    }

    @DeleteMapping("/deleteMenber/{id}")
    public R deleteMenber(@PathVariable Integer id) {
        return menberService.deleteMenber(id);
    }


}
